<!doctype html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@ taglib prefix="perm" uri="http://wanhuakeji.com/permission" %>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <script type="text/javascript" src="${path}/html/js/js-jsp/layout-sub.js"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/dataServices/serviceMethod.js?v=<%out.print(Math.random());%>"></script>
    <script>
        addBtn = <perm:hasPermission permission="rules:dataService_serviceMehod_add"/>;
        delBtn = <perm:hasPermission permission="rules:dataService_serviceMehod_del"/>;
        editBtn= <perm:hasPermission permission="rules:dataService_serviceMehod_edit"/>;
        searchBtn = <perm:hasPermission permission="rules:dataService_serviceMehod_find"/>;
        viewBtn = <perm:hasPermission permission="rules:dataService_serviceMehod_view"/>;
    </script>
</head>
<body style="height:100%; margin: 2px; ">
    <div class="easyui-layout"  fit="true" space="2">
        <div region="north" style="height:100%;">
            <div class="easyui-layout" fit="true" space="2">
                <div region="north" class="searchToolBar" border="false" style="height:70px">
                    <fieldset>
                        <legend>系统操作</legend>
                        <form id="serviceMethodQueryForm" name="serviceMethodQueryForm" method="post">
                            <table class="searchTable" >
                                <tr class="searchTableTr" style="width: 100%" >
                                    <td>
                                        <input type="hidden" name="id" id="id_" value="" />
                                        <input class="easyui-textbox" type="text" label="服务方法：" labelWidth="82" labelposition="left" data-options="prompt:'请输入服务方法'" name="method_" id="method_" style="width:90%; height: 32px">
                                    </td>
                                    <td>
                                        <input class="easyui-textbox" type="text" label="服务标题：" labelWidth="82" labelposition="left" data-options="prompt:'请输入服务标题'" name="title_" id="title_" style="width:90%; height: 32px">
                                    </td>
                                    <td style="width: 50%;">
                                        <div class="searchButton">
                                            <!--服务配置操作菜单-->
                                            <div id="serviceMethod_menu"></div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </fieldset>
                </div>
                <div region="center" border="false" style="padding: 1px;">
                    <!--服务配置表格列表-->
                    <table id="serviceMethod_dataList"></table>
                </div>
            </div>
        </div>
    </div>
    <!-- 服务配置的添加/修改 -->
    <div id="serviceMethod_dialog" class="easyui-dialog" data-options="closed:true" style="padding:10px;">
        <form id="serviceMethodForm" name="serviceMethodForm" method="post">
            <div class="gridFrom">
                <dl style="padding: 3px;">
                    <dd>
                        <input type="hidden" name="id" id="id" value="" />
                        <span class="title" style="width: 120px">应用KEY：</span>
                        <input class="easyui-textbox" type="text" name="appKey" id="appKey" data-options="required:true" missingMessage="应用Key不能为空"  style="width: 225px">
                    </dd>
                    <dd>
                        <span class="title" style="width: 120px">服务方法：</span>
                        <input class="easyui-textbox" type="text" name="method" id="method" data-options="required:true" missingMessage="服务方法不能为空"  style="width: 225px">
                    </dd>
                    <dd>
                        <span class="title" style="width: 120px">服务版本：</span>
                        <input class="easyui-textbox" type="text" name="version" id="version" data-options="required:true" missingMessage="服务版本不能为空" style="width: 225px">
                    </dd>
                    <dd>
                        <span class="title" style="width: 120px">服务标题：</span>
                        <input class="easyui-textbox" type="text" name="title" id="title" data-options="required:true" missingMessage="服务标题不能为空" style="width: 225px">
                    </dd>
                    <dd>
                        <span class="title" style="width: 120px; vertical-align: top; padding-top: 10px">服务备注：</span>
                        <input class="easyui-textbox" type="text" data-options="multiline:true" name="remark" id="remark"  style="width:300px;height:100px">
                    </dd>
                    <dd>
                        <span class="title" style="width: 120px">会话较验：</span>
                        <select class="easyui-combobox" name="needSession" id="needSession" style="width: 225px" editable="false">
                            <option value="1" selected="selected">是</option>
                            <option value="0">否</option>
                        </select>
                    </dd>
                    <dd>
                        <span class="title" style="width: 120px">是否过期：</span>
                        <select class="easyui-combobox" name="obsoleted" id="obsoleted" style="width: 225px" editable="false">
                            <option value="0" selected="selected">否</option>
                            <option value="1">是</option>

                        </select>
                    </dd>
                    <dd>
                        <span class="title" style="width: 120px">最大超时：</span>
                        <input class="easyui-numberspinner" type="text"  name="timeout" value="0" data-options="required:true,min:0,max:100000000,required:true" missingMessage="最大超时不能为空" style="width: 225px"> &nbsp;
                    </dd>
                    <dd>
                        <span class="title" style="width: 120px">服务状态：</span>
                        <select class="easyui-combobox" name="status" id="status" style="width: 225px" editable="false">
                            <option value="0">禁用</option>
                            <option value="1" selected="selected">启用</option>
                        </select>
                    </dd>
                </dl>
            </div>
        </form>
    </div>
    <script type="text/javascript" src="${path}/html/js/js-jsp/common-optionBtnArray.js"></script>
</body>
</html>
